﻿using System;
using System.Collections.Generic;
using Zongsoft.Data;

namespace Dxr.Data
{
    /// <summary>
    /// 创建查询语句的参数
    /// </summary>
    public class CreatingSelectSqlParameter : CreatingSqlParameter
    {
        #region 构造函数
        public CreatingSelectSqlParameter(CreatingSqlParameter paremeter)
            : base(paremeter.Subquery, paremeter.TableIndex, paremeter.JoinStartIndex, paremeter.ValueIndex)
        {
            base.SyncModel = paremeter;
        }
        #endregion

        #region 属性
        public ClassInfo ClassInfo
        {
            get;
            set;
        }

        public ICondition Condition
        {
            get;
            set;
        }
        public string[] Members
        {
            get;
            set;
        }

        public string[] ConditionNames
        {
            get;
            set;
        }

        public Dictionary<string, ColumnInfo> AllColumnInfos
        {
            get;
            set;
        }

        public Paging Paging
        {
            get;
            set;
        }

        public Grouping Grouping
        {
            get;
            set;
        }

        public Sorting[] Sorting
        {
            get;
            set;
        }
        #endregion
    }
}
